﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ServiceModel;
using VacationDaysCommons;

namespace VacationDays
{
    [ServiceContract]
    public interface IVDRequestService
    {
        [OperationContract]
        List<VDVacationRequest>GetPendingRequestsByPM(Guid PMId);
        [OperationContract]
        List<int> UpdateRequests(List<VDVacationRequest> requestsToUpdate);
        [OperationContract]
        bool CreateVacationRequest(VDVacationRequest newRequest);
        [OperationContract]
        List<VDVacationRequest> GetEmployeeRequests(Guid userId);
        [OperationContract]
        List<int> CancelVacationRequests(List<int> requestsToCancel);
    }
}